#! admin_script.sh
#!/usr/bin/env sh

# hexo clean
# hexo g -d

# 自动push到git分支

#echo "========== begin =========="

msg=$1

#若为空，则给个默认值
if [ -z "$msg" ]; then
    msg="commit files"
fi

git add .
git commit -m "$msg"
git push origin master

#echo "==========  end  =========="
